package com.fbee.smartcommunities.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fbee.smartcommunities.entity.OrderGoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fbee.smartcommunities.vo.OrderGoodsVO;
import com.fbee.smartcommunities.vo.OrderVO;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 * 订单商品关系表 Mapper 接口
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-27
 */
public interface OrderGoodsMapper extends BaseMapper<OrderGoods> {

    List<OrderVO> getOrders(Long uid);

    IPage<OrderGoodsVO> getOrdersByCid(@Param("openId") Long openId, @Param("page") Page<?> page, @Param("key") String key);

}
